package com.qlzb.taskmanagement.repositoty;

import com.qlzb.taskmanagement.entity.CronInfoEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface CronInfoRepository extends JpaRepository<CronInfoEntity,Long> {
    /*
     * 根据id查询
     * */
    @Query(value = "select * from timing_task where id = :id", nativeQuery = true)
    CronInfoEntity findByByPrimaryKey(@Param("id") String id);
}
